//
//  ZYCTeaLeaveAddPhotoCell.h
//  ZDSC
//
//  Created by 张威 on 2021/10/20.
//

#import <UIKit/UIKit.h>
#import "ZYCTeaLeaveRecordRootModel.h"
#import "ZYCPhotoCollectionCell.h"

@class ZYCTeaLeaveAddPhotoCell;
NS_ASSUME_NONNULL_BEGIN



@protocol ZYCTeaLeaveAddPhotoCellDelegate <NSObject>

@optional
// 增加图片
- (void)teaLeaveAddPhoto;
// 删除图片
- (void)teaLeaveDeletePhotoCell:(ZYCTeaLeaveAddPhotoCell *)cell;
// 预览图片
- (void)teaLeaveBrowserWithIndex:(NSInteger)index PhotoCell:(ZYCTeaLeaveAddPhotoCell *)cell;

@end

@interface ZYCTeaLeaveAddPhotoCell : UITableViewCell

@property (nonatomic, copy) NSString *titleString;

@property (nonatomic, assign) ZYCTeaLeaveAddPhotoType type;

@property (nonatomic, strong) NSMutableArray * selectedPhotos;
@property (nonatomic, strong) NSMutableArray * selectedAssets;

@property (nonatomic, strong) NSMutableArray *dataSource;




@property (nonatomic, weak) id <ZYCTeaLeaveAddPhotoCellDelegate> delegate;


+ (instancetype)teacherLeaveAddPhotoCellWithType:(ZYCTeaLeaveAddPhotoType)type TableView:(UITableView *)tableView;
@end

NS_ASSUME_NONNULL_END
